#!/usr/bin/env python
#-*- coding:utf-8 -*-
from matplotlib import pyplot

class Displayer():
    def figure(self, *args, **kws):
        pass

    def plot(self, *args, **kws):
        pass

    def scatter(self, *args, **kws):
        pass
    
    def annotate(self, *args, **kws):
        pass

    def display(self, *args, **kws):
        pass

    def savefig(self, *args, **kws):
        pass


class PyplotDisplayer(Displayer):
    def __init__(self):
        self.figure()
        self.set_window()

    def set_window(self, width=12, height=8):
        pyplot.gcf().set_figwidth(width)
        pyplot.gcf().set_figheight(height)
        pyplot.axis('off')

    def figure(self):
        pyplot.figure()

    def plot(self, *args, **kws):
        pyplot.plot(*args, **kws)

    def scatter(self, *args, **kws):
        pyplot.scatter(*args, **kws)
    
    def annotate(self, *args, **kws):
        pyplot.annotate(*args, **kws)

    def display(self, *args, **kws):
        pyplot.show() 

    def arrow(self, *args, **kws):
        pyplot.arrow(*args, **kws)

    def imshow(self, *args, **kws):
        pyplot.imshow(*args, **kws)
    
    def axis(self, *args, **kws):
        pyplot.axis(*args, **kws)
        
    def savefig(self, *args, **kws):
        pyplot.savefig(*args, **kws)


class EchartsDisplayer(Displayer):
    pass


if __name__ == "__main__":
    pass
        